from Lib import UpdateDBHelper

updateDBHelper = UpdateDBHelper.UpdateDBHelper()
print "Loading ip list...",
ipList = updateDBHelper.getIpList()
print "done"

file = open('./ipdump.text')
for ip in ipList:
    file.write('%s\n' % ip)